var fs = require('fs');

fs.readFile('a.txt',function(err,data){
    if( err )
    {
        console.log('读取错误');
    }else{
        console.log(data.toString());
    }
});